<include file="Common/header" />
<title>收费单据</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 费用管理 
	<span class="c-gray en">&gt;</span> 收费单据 
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div style="padding-left: 20px;padding-top: 20px;padding-right: 20px">

	<span style="display: inline-block;width: 280px;text-align: right;margin-left: 13px;">
		收费时间：
		<span class="select-box" style="width:200px">
			<input class="select form-control layer-date" id="stime" name="stime" value="{$costlog_times}" />
		</span>
	</span>
	
	<a href="javascript:;" class="btn btn-success radius"><i class="Hui-iconfont">&#xe709;</i> 查询</a> 
</div>
<div class="pd-20">
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Costlog/order_list" />
	</div>
</div>

<script type="text/javascript">
	$(function(){
		$("#stime").on('click', function(){
			laydate({istime: true, format: 'YYYY-MM-DD'});
		});
		
		//按条件查询
		$(".btn-success").on('click', function(){
			var load = layer.load(2);
			var where = {};
				where.costlog_status = $("#costlog_status").val();
				where.owner_name = $("#owner_name").val();
				where.costlog_times = $("#stime").val();
				where.ajax = 1;
			$.get('order.html', where, function(data){
				layer.close(load);
				$("#ajaxDiv").html(data);
			});
		});
	});
</script>
</body>
</html>